package com.rightsidetech.scheduler;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableScheduling;

//定时任务
@ImportResource("classpath:dubbo-task.xml")
@EnableScheduling
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
public class SpringBootTask {
    public static void main(String[] args) {
        SpringApplication.run(SpringBootTask.class,args);
    }
}
